home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Interfaces / Universal Interfaces / AIFF.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-30  |  6.9 KB  |  360 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AIFF.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __AIFF__
  13. #define __AIFF__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. /*    #include <ConditionalMacros.h>                                */
  18. /*    #include <MixedMode.h>                                        */
  19. /*        #include <Traps.h>                                        */
  20. #endif
  21.  
  22. #define AIFFID 'AIFF'
  23.  
  24. #define AIFCID 'AIFC'
  25.  
  26. #define FormatVersionID 'FVER'
  27.  
  28. #define CommonID 'COMM'
  29.  
  30. #define FORMID 'FORM'
  31.  
  32. #define SoundDataID 'SSND'
  33.  
  34. #define MarkerID 'MARK'
  35.  
  36. #define InstrumentID 'INST'
  37.  
  38. #define MIDIDataID 'MIDI'
  39.  
  40. #define AudioRecordingID 'AESD'
  41.  
  42. #define ApplicationSpecificID 'APPL'
  43.  
  44. #define CommentID 'COMT'
  45.  
  46. #define NameID 'NAME'
  47.  
  48. #define AuthorID 'AUTH'
  49.  
  50. #define CopyrightID '(c) '
  51.  
  52. #define AnnotationID 'ANNO'
  53.  
  54. enum  {
  55.     NoLooping                    = 0,
  56.     ForwardLooping                = 1,
  57.     ForwardBackwardLooping        = 2,
  58. /* AIFF-C Versions */
  59.     AIFCVersion1                = 0xA2805140
  60. };
  61.  
  62. typedef unsigned long ID;
  63.  
  64. typedef short MarkerIdType;
  65.  
  66. #if defined(powerc) || defined (__powerc)
  67. #pragma options align=mac68k
  68. #endif
  69. struct ChunkHeader {
  70.     ID                            ckID;
  71.     long                        ckSize;
  72. };
  73. #if defined(powerc) || defined(__powerc)
  74. #pragma options align=reset
  75. #endif
  76.  
  77.  
  78. /* Compression Names */
  79.  
  80. #define NoneName "\pnot compressed"
  81.  
  82. #define ACE2to1Name "\pACE 2-to-1"
  83.  
  84. #define ACE8to3Name "\pACE 8-to-3"
  85.  
  86. #define MACE3to1Name "\pMACE 3-to-1"
  87.  
  88. #define MACE6to1Name "\pMACE 6-to-1"
  89.  
  90.  
  91. /* Compression Types */
  92.  
  93. #define NoneType 'NONE'
  94.  
  95. #define ACE2Type 'ACE2'
  96.  
  97. #define ACE8Type 'ACE8'
  98.  
  99. #define MACE3Type 'MAC3'
  100.  
  101. #define MACE6Type 'MAC6'
  102.  
  103. typedef struct ChunkHeader ChunkHeader;
  104.  
  105. #if defined(powerc) || defined (__powerc)
  106. #pragma options align=mac68k
  107. #endif
  108. struct ContainerChunk {
  109.     ID                            ckID;
  110.     long                        ckSize;
  111.     ID                            formType;
  112. };
  113. #if defined(powerc) || defined(__powerc)
  114. #pragma options align=reset
  115. #endif
  116.  
  117. typedef struct ContainerChunk ContainerChunk;
  118.  
  119. #if defined(powerc) || defined (__powerc)
  120. #pragma options align=mac68k
  121. #endif
  122. struct FormatVersionChunk {
  123.     ID                            ckID;
  124.     long                        ckSize;
  125.     unsigned long                timestamp;
  126. };
  127. #if defined(powerc) || defined(__powerc)
  128. #pragma options align=reset
  129. #endif
  130.  
  131. typedef struct FormatVersionChunk FormatVersionChunk;
  132.  
  133. typedef FormatVersionChunk *FormatVersionChunkPtr;
  134.  
  135. #if defined(powerc) || defined (__powerc)
  136. #pragma options align=mac68k
  137. #endif
  138. struct CommonChunk {
  139.     ID                            ckID;
  140.     long                        ckSize;
  141.     short                        numChannels;
  142.     unsigned long                numSampleFrames;
  143.     short                        sampleSize;
  144.     extended80                    sampleRate;
  145. };
  146. #if defined(powerc) || defined(__powerc)
  147. #pragma options align=reset
  148. #endif
  149.  
  150. typedef struct CommonChunk CommonChunk;
  151.  
  152. typedef CommonChunk *CommonChunkPtr;
  153.  
  154. #if defined(powerc) || defined (__powerc)
  155. #pragma options align=mac68k
  156. #endif
  157. struct ExtCommonChunk {
  158.     ID                            ckID;
  159.     long                        ckSize;
  160.     short                        numChannels;
  161.     unsigned long                numSampleFrames;
  162.     short                        sampleSize;
  163.     extended80                    sampleRate;
  164.     ID                            compressionType;
  165.     char                        compressionName[1];
  166. };
  167. #if defined(powerc) || defined(__powerc)
  168. #pragma options align=reset
  169. #endif
  170.  
  171. typedef struct ExtCommonChunk ExtCommonChunk;
  172.  
  173. typedef ExtCommonChunk *ExtCommonChunkPtr;
  174.  
  175. #if defined(powerc) || defined (__powerc)
  176. #pragma options align=mac68k
  177. #endif
  178. struct SoundDataChunk {
  179.     ID                            ckID;
  180.     long                        ckSize;
  181.     unsigned long                offset;
  182.     unsigned long                blockSize;
  183. };
  184. #if defined(powerc) || defined(__powerc)
  185. #pragma options align=reset
  186. #endif
  187.  
  188. typedef struct SoundDataChunk SoundDataChunk;
  189.  
  190. typedef SoundDataChunk *SoundDataChunkPtr;
  191.  
  192. #if defined(powerc) || defined (__powerc)
  193. #pragma options align=mac68k
  194. #endif
  195. struct Marker {
  196.     MarkerIdType                id;
  197.     unsigned long                position;
  198.     Str255                        markerName;
  199. };
  200. #if defined(powerc) || defined(__powerc)
  201. #pragma options align=reset
  202. #endif
  203.  
  204. typedef struct Marker Marker;
  205.  
  206. #if defined(powerc) || defined (__powerc)
  207. #pragma options align=mac68k
  208. #endif
  209. struct MarkerChunk {
  210.     ID                            ckID;
  211.     long                        ckSize;
  212.     unsigned short                numMarkers;
  213.     Marker                        Markers[1];
  214. };
  215. #if defined(powerc) || defined(__powerc)
  216. #pragma options align=reset
  217. #endif
  218.  
  219. typedef struct MarkerChunk MarkerChunk;
  220.  
  221. typedef MarkerChunk *MarkerChunkPtr;
  222.  
  223. #if defined(powerc) || defined (__powerc)
  224. #pragma options align=mac68k
  225. #endif
  226. struct AIFFLoop {
  227.     short                        playMode;
  228.     MarkerIdType                beginLoop;
  229.     MarkerIdType                endLoop;
  230. };
  231. #if defined(powerc) || defined(__powerc)
  232. #pragma options align=reset
  233. #endif
  234.  
  235. typedef struct AIFFLoop AIFFLoop;
  236.  
  237. #if defined(powerc) || defined (__powerc)
  238. #pragma options align=mac68k
  239. #endif
  240. struct InstrumentChunk {
  241.     ID                            ckID;
  242.     long                        ckSize;
  243.     char                        baseFrequency;
  244.     char                        detune;
  245.     char                        lowFrequency;
  246.     char                        highFrequency;
  247.     char                        lowVelocity;
  248.     char                        highVelocity;
  249.     short                        gain;
  250.     AIFFLoop                    sustainLoop;
  251.     AIFFLoop                    releaseLoop;
  252. };
  253. #if defined(powerc) || defined(__powerc)
  254. #pragma options align=reset
  255. #endif
  256.  
  257. typedef struct InstrumentChunk InstrumentChunk;
  258.  
  259. typedef InstrumentChunk *InstrumentChunkPtr;
  260.  
  261. #if defined(powerc) || defined (__powerc)
  262. #pragma options align=mac68k
  263. #endif
  264. struct MIDIDataChunk {
  265.     ID                            ckID;
  266.     long                        ckSize;
  267.     unsigned char                MIDIdata[1];
  268. };
  269. #if defined(powerc) || defined(__powerc)
  270. #pragma options align=reset
  271. #endif
  272.  
  273. typedef struct MIDIDataChunk MIDIDataChunk;
  274.  
  275. typedef MIDIDataChunk *MIDIDataChunkPtr;
  276.  
  277. #if defined(powerc) || defined (__powerc)
  278. #pragma options align=mac68k
  279. #endif
  280. struct AudioRecordingChunk {
  281.     ID                            ckID;
  282.     long                        ckSize;
  283.     unsigned char                AESChannelStatus[24];
  284. };
  285. #if defined(powerc) || defined(__powerc)
  286. #pragma options align=reset
  287. #endif
  288.  
  289. typedef struct AudioRecordingChunk AudioRecordingChunk;
  290.  
  291. typedef AudioRecordingChunk *AudioRecordingChunkPtr;
  292.  
  293. #if defined(powerc) || defined (__powerc)
  294. #pragma options align=mac68k
  295. #endif
  296. struct ApplicationSpecificChunk {
  297.     ID                            ckID;
  298.     long                        ckSize;
  299.     OSType                        applicationSignature;
  300.     char                        data[1];
  301. };
  302. #if defined(powerc) || defined(__powerc)
  303. #pragma options align=reset
  304. #endif
  305.  
  306. typedef struct ApplicationSpecificChunk ApplicationSpecificChunk;
  307.  
  308. typedef ApplicationSpecificChunk *ApplicationSpecificChunkPtr;
  309.  
  310. #if defined(powerc) || defined (__powerc)
  311. #pragma options align=mac68k
  312. #endif
  313. struct Comment {
  314.     unsigned long                timeStamp;
  315.     MarkerIdType                marker;
  316.     unsigned short                count;
  317.     char                        text[1];
  318. };
  319. #if defined(powerc) || defined(__powerc)
  320. #pragma options align=reset
  321. #endif
  322.  
  323. typedef struct Comment Comment;
  324.  
  325. #if defined(powerc) || defined (__powerc)
  326. #pragma options align=mac68k
  327. #endif
  328. struct CommentsChunk {
  329.     ID                            ckID;
  330.     long                        ckSize;
  331.     unsigned short                numComments;
  332.     Comment                        comments[1];
  333. };
  334. #if defined(powerc) || defined(__powerc)
  335. #pragma options align=reset
  336. #endif
  337.  
  338. typedef struct CommentsChunk CommentsChunk;
  339.  
  340. typedef CommentsChunk *CommentsChunkPtr;
  341.  
  342. #if defined(powerc) || defined (__powerc)
  343. #pragma options align=mac68k
  344. #endif
  345. struct TextChunk {
  346.     ID                            ckID;
  347.     long                        ckSize;
  348.     char                        text[1];
  349. };
  350. #if defined(powerc) || defined(__powerc)
  351. #pragma options align=reset
  352. #endif
  353.  
  354. typedef struct TextChunk TextChunk;
  355.  
  356. typedef TextChunk *TextChunkPtr;
  357.  
  358. #endif
  359.  
  360.